<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1.background-image绘制重复图案</title>
    <style>
        div{
            margin: 200px auto;
            height: 600px;
            width:600px;
            background-image: linear-gradient(to right, transparent 90%,#ccc 0),linear-gradient(to bottom, transparent 90%,#ccc 0);
            background-size: 8px 8px, 8px 8px;
        }
    </style>
</head>
<body>
    <div></div>
    
    <script type="module">

    </script>
</body>
</html>